package com.yifang.yibingproject.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @Title: com.weixun.dailubao.dto
 * @Author: lh
 * @Description:
 * @Date: Created in 18:34 2021/6/21
 */
@Data
@ApiModel("操作权限编辑DTO")
public class ActionRightEditDTO implements Serializable {

    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty("用户id")
    private String userId;

    @NotBlank(message = "用户类型id不能为空")
    @ApiModelProperty("用户类型id")
    private String userTypeId;

    @ApiModelProperty("调价 0、5、10、15")
    private BigDecimal adjustPrice;

    @ApiModelProperty("天数")
    private Integer day;

    @ApiModelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty("标签ids")
    private List<String> labelIds;

    @ApiModelProperty("可购买标签 0可代发 1小额批 2可代发+小额批")
    private Integer buyLabel;

}
